package com.mrbird.demo.entity;

import com.fasterxml.jackson.annotation.JsonView;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jbx
 * @package_name com.mrbird.demo.entity
 * @create_date 2021/2/24 10:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 6222176558369919436L;

    public interface UserNameView {
    }

    ;

    public interface AllUserFieldView extends UserNameView {
    }

    ;

    @JsonView(UserNameView.class)
    private String userName;

    @JsonView(AllUserFieldView.class)
    private int age;

    @JsonView(AllUserFieldView.class)
    private String password;

    @JsonView(AllUserFieldView.class)
    private Date birthday;
}
